package cn.tedu.csmall.lilishop.mapper;

import cn.tedu.csmall.lilishop.pojo.entity.Admin;
import cn.tedu.csmall.lilishop.pojo.vo.AdminListItemVO;
import cn.tedu.csmall.lilishop.pojo.vo.AdminLoginInfoVO;
import cn.tedu.csmall.lilishop.pojo.vo.AdminStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    int insert(Admin admin);

    int countByUsername(String username);

    int countByPhone(String phone);

    int countByEmail(String email);

    List<AdminListItemVO> list();

    AdminLoginInfoVO getLoginInfoByUsername(String username);

    int deleteById(Long id);

    int update(Admin admin);

    AdminStandardVO getStandardById(Long id);

}
